using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ToolTipSystem : MonoBehaviour
{
    public static ToolTipSystem instance;
    public ToolTap toolTap;
    public void Awake()
    {
        instance = this;
    }

    public void setString(string head,string content)
    {
        instance.toolTap.headerField.text = head;
        instance.toolTap.contentField.text = content;

    }
    public static void show()
    {
        Vector2 position = Input.mousePosition;
        instance.toolTap.gameObject.transform.position = position;
        instance.toolTap.gameObject.SetActive(true);
    }
    public static void Hide()
    {
        instance.toolTap.gameObject.SetActive(false);
    }
}
